﻿using NLog.Filters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Framework.SqlSugar.Utils
{
	/// <summary>
	/// 模糊查询条件
	/// </summary>
	public class Search
	{
		/// <summary>
		/// 字段名称集合
		/// </summary>
		public List<string> Fields { get; set; }

		/// <summary>
		/// 关键字
		/// </summary>
		public string? Keyword { get; set; }
	}

	/// <summary>
	/// 过滤条件基类
	/// </summary>
	public abstract class BaseFilter
	{
		/// <summary>
		/// 模糊查询条件
		/// </summary>
		public Search? Search { get; set; }

		/// <summary>
		/// 模糊查询关键字
		/// </summary>
		public string? Keyword { get; set; }

		/// <summary>
		/// 筛选过滤条件
		/// </summary>
		public Filter? Filter { get; set; }
	}
}
